-
Notifications
You must be signed in to change notification settings - Fork 2
Adding GenJets to LST with indexing #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| std::vector<float> genJetPt, | ||
| std::vector<float> genJetEta, | ||
| std::vector<float> genJetPhi) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| std::vector<float> genJetPt, | |
| std::vector<float> genJetEta, | |
| std::vector<float> genJetPhi) { | |
| std::vector<float> const& genJetPt, | |
| std::vector<float> const& genJetEta, | |
| std::vector<float> const& genJetPhi) { |
| @@ -1054,6 +1046,30 @@ void bookFakeRateSet(RecoTrackSetDefinition& FRset) { | |||
| // ---------------------------------------------------------=============================================------------------------------------------------------------------- | |||
| // ---------------------------------------------------------=============================================------------------------------------------------------------------- | |||
|
|
|||
| float finddRTemp(float eta, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Temp" is not descriptive
| float finddRTemp(float eta, | |
| float dRClosestJet(float eta, |
|
/run all |
|
There was a problem while building and running in standalone mode. The logs can be found here. |
|
There was a problem while building and running with CMSSW. The logs can be found here. |
This PR replaces #214. It's based on a more up-to-date version of CMSSW (CMSSW_16_0_0_pre4 rather than _pre2).
TrackingNtuple.cc has been modified so that when the trackingNtuple.root file is produced with cmsDriver.py, it includes branches corresponding to GenJets. These branches are:
The last one is an index that allows each sim track to be matched with the jet it is closest to (minimizes ΔR). This replaces the post-processing described in #187, which added branches corresponding to ΔR and the jets after trackingNtuple.root was produced. The branches sim_genjet_deltaR, sim_genjet_deltaEta, and sim_genjet_deltaPhi are now also included in trackingNtuple.root.
This allows the efficiency, fake rate, and duplicate rate to plotted against ΔR. I also included a limit such that only tracks corresponding to GenJets with pT > 1000 GeV are considered.
None of these changes should impact the rest of LST. The code looking at the jet branches can be enabled/disabled using the -J flag.
Here are some example plots for 100 events from the file /RelValQCD_Pt_1800_2400_14/CMSSW_16_0_0_pre1-150X_mcRun4_realistic_v1_STD_RegeneratedGS_Run4D110_noPU-v1/GEN-SIM-DIGI-RAW, including only tracks with GenJet pT > 1000 GeV: